using DaprPlus.AspNetCore.Extensions;

using Liuliu.Fsb.ApiGateway;


var builder = WebApplication.CreateBuilder(args);

builder.AddServiceDefaults();

builder.Services.AddReverseProxy()
    .LoadFromConfig(builder.Configuration.GetSection("ReverseProxy"));

builder.AddDaprPlus<StartupModule>();


var app = builder.Build();

await app.UseDaprPlus();
app.MapDefaultEndpoints();
app.MapReverseProxy();

await app.RunAsync();
